package com.bs.sc.front.goodsCar.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.bs.sc.base.entity.BaseEntity;
import com.bs.sc.mgr.goods.entity.Goods;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Entity
@Table(name = "goods_car_item")
@EqualsAndHashCode(callSuper = true)
public class GoodsCarItem extends BaseEntity {

	@OneToOne
	@JoinColumn(name = "goods_id")
	private Goods goods;
	@ManyToOne
	@JoinColumn(name = "goods_car_id")
	private GoodsCar goodsCar;
	private int count;
}
